//
//  CofirmOrder_SkuItem_TCell.swift
//  MikerShop
//
//  Created by eme on 2016/12/24.
//  Copyright © 2016年 eme. All rights reserved.
//

/*
 owner:cy
 update:2016年12月24日10:57:31
 info: 确认订单  每一个sku的item信息
 VC :  CofirmOrder_Vc
 */
import UIKit
import Kingfisher
import RxSwift

class CofirmOrder_SkuItem_TCell: UITableViewCell {
    
    @IBOutlet weak var skuName1_Lb: UILabel!
    
    @IBOutlet weak var skuName2_Lb: UILabel!
    /// 商品单价
    @IBOutlet weak var shprice_Lb: UILabel!
    ///商品总数
    @IBOutlet weak var skunum_Lb: UILabel!
    /// 运费
    @IBOutlet weak var postage_Lb: UILabel!
    /// 总价格 skunum *  postage
    @IBOutlet weak var totalPrice_Lb: UILabel!
    
    
    var item :OrderProductModel?{
        didSet{
            if let item = self.item {
                self.skuName1_Lb.text = item.show_psfname
                self.skuName2_Lb.text = item.show_psfname2
                self.shprice_Lb.text = "单价:" + item.shprice.getPriceStr() + "/" + "\(item.pdunit)"
                self.skunum_Lb.text = "共:\(item.skunum)\(item.pdunit),"
                self.postage_Lb.text = "运费:\(item.skupostage.getPriceStr())"
                self.totalPrice_Lb.text = item.skutotalprice.getPriceStr()
            }
        }
    }
    override func awakeFromNib() {
        
        
    }
}
